package com.lanbu.system.service.impl;
import com.lanbu.system.domain.mongo.MongoDatasets;
import com.lanbu.system.mapper.MongoDatasetsRepository;
import org.bson.types.ObjectId;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import java.util.List;

@Service
public class MongoDatasetsService {
    @Autowired
    private MongoDatasetsRepository mongoDatasetsRepository;
    @Autowired
    public MongoDatasetsService(MongoDatasetsRepository mongoDatasetsRepository) {
        this.mongoDatasetsRepository = mongoDatasetsRepository;
    }

    public List<MongoDatasets> findByAppId(String appId) {
        return mongoDatasetsRepository.findByAppId(appId);
    }

}
